<?php
/**
 * Parent class for all tax types
 *
 * @access 	public
 * @author 	Valentin
 * @copyright	ResMania 2009 all rights reserved.
 * @version	1.0
 * @link	http://developer.resmania.com/api
 * @since  	08-2009
 */
abstract class RM_Discounts_Rule {
    protected $_discount;
    protected $_value;

    public function __construct(RM_Discounts_Row $discount, $value){
        $this->_value = $value;
        $this->_discount = $discount;
    }

    /**
     * Indicates if discount is matched or not
     *
     * @abstract
     * @param RM_Reservation_Details $detail
     * @return void
     */
    public abstract function isMatched(RM_Reservation_Details $detail);
}